﻿<%@ Page Language="C#" MasterPageFile="~/Management/ManagementMasterPage.master" AutoEventWireup="true" CodeBehind="userManger.aspx.cs" Inherits="WebApp.Management.userManger" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" runat="server">
    用户手机号码： <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:Button ID="Button1"
       runat="server" Text="查询" onclick="Button1_Click" />
        <br />
       
<asp:ListView ID="lvActivity" runat="server" 
        onitemcommand="lvActivity_ItemCommand" 
        onpagepropertieschanged="lvActivity_PagePropertiesChanged">
		<LayoutTemplate>
			<table cellpadding="2"  border="1">
				<tr>
					<th>手机号码</th>
					<th>邮箱</th>
					<th>密码</th>
					<th>会员组别</th>
					<th>帐户余额</th>
					<th>注册的时间</th>
				</tr>
				<asp:PlaceHolder id=itemPlaceholder runat=server/>
			</table>
			<asp:DataPager ID="dpActivity" runat="server" PagedControlID="lvActivity" PageSize="20">
				<Fields>
					<asp:NextPreviousPagerField ButtonType=Link ShowFirstPageButton="True" ShowNextPageButton="False"
						ShowPreviousPageButton="False" />
					<asp:NumericPagerField />
					<asp:NextPreviousPagerField ButtonType=Link ShowLastPageButton="True" ShowNextPageButton="False"
						ShowPreviousPageButton="False" />
				</Fields>
			</asp:DataPager>
		</LayoutTemplate>
		<ItemTemplate>
			<tr>
				<td>
				<%# Eval("tel")%>
				</td>
				<td>
				<%# Eval("Email")%>
				</td>
				<td>
					<%# Eval("Password")%>
				</td>
				<td>
					<%# Eval("Level")%>
				</td>
				<td>
					<%# Eval("Balance")%>
				</td>
				<td>
					<%# Eval("RegisterTime")%>
				</td>
				<td>
					<a href =userEites.aspx?PID=<%# Eval("UserId") %>>Edit</a>
					<asp:LinkButton ID=btnDelete runat="server" CommandName=OnDelete CommandArgument=<%# Eval("UserId") %> OnClientClick="return confirm('确定要删除吗?');">Delete</asp:LinkButton>
				</td>
			</tr>
		</ItemTemplate>
	</asp:ListView>
</asp:Content>
